package com.zyh.array;

import java.util.Arrays;

public class ArrayDemo2 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6};
//        查询下标为2的元素
        int i = arr[2];
        System.out.println("i = " + i);
//        修改下标为3的元素
        arr[3] = 44;
        System.out.println("Arrays.toString(arr) = " + Arrays.toString(arr));
    }
}
